package org.jl.demo.authority.model.po;

import lombok.Data;
import jakarta.persistence.*;

/**
 * 角色用户关联Po
 */
@Data
@Entity
@Table(name = "z_role_user_relation")
@IdClass(RoleUserRelationPK.class)
public class RoleUserRelation {
    /**
     * 角色ID
     */
    @Id
    @Column(name = "role_id", nullable = false, unique = true)
    private Integer roleId;
    /**
     * 用户ID
     */
    @Id
    @Column(name = "user_id", nullable = false, unique = true)
    private Integer userId;
}